package com.example.easyexcel.enums;

public enum OkEmailEnum {

    /*----------------------    sendGrid 错误码    --------------------------*/
    E_OPEN("Open","收件人已打开 HTML 邮件。"),
    E_CLICK("Click","收件人单击了邮件中的链接。"),
    E_SPAM_REPORT("Spam Report","收件人已打开 HTML 邮件。"),
    E_UNSUBSCRIBE("Unsubscribe","收件人已打开 HTML 邮件。"),
    E_GROUP_UNSUBSCRIBE("Group Unsubscribe","收件人已打开 HTML 邮件。"),
    E_GROUP_RESUBSCRIBE("Group Resubscribe","收件人已打开 HTML 邮件。"),

    /*----------------------    调用阿里邮箱接口返回的 错误码    --------------------------*/
    E_535_AUTHENTICATION_FAILURE("535 Authentication failure.","认证失败"),
    E_556_THE_NUMBER_OF_RCPTS_IS_OVER_SIZE("556 The number of RCPTs is over size","收件地址数量超限"),
    E_557_THE_LENGTH_OF_DATA_CONTENT_IS_ACHIEVED_THE_MAXIMUM_THRESHOLD("557 The length of DATA content is achieved the maximum threshold","邮件大小超限"),
    E_559_INVALID_RCPTTO("559 Invalid rcptto","命中无效地址库"),
    E_423_DNS_RESOLVE_ERROR("423 Dns resolve error","MX 解析查询失败"),
    E_524_HOST_NOT_FOUND_BY_DNS_RESOLVE("524 Host not found by dns resolve","null"),
    E_526_NO_DATA_BY_DNS_RESOLVE("526 No data by dns resolve","null"),
    E_427_SOCKS_CONNECT_TO_UNREACHABLE_HOST("427 Socks Connect to UNREACHABLE host","连接失败"),
    E_552_MONTHLY_SENDING_QUOTA_EXCEEDED("552 Monthly sending quota exceeded","发信额度超限制"),
    E_552_DAILY_SENDING_QUOTA_EXCEEDED("552 Daily sending quota exceeded","null"),
    E_552_NOT_ENOUGH_SENDING_QUOTA("552 Not enough sending quota","null"),
    E_554_REJECT_BY_CONTENT_SPAM("554 Reject by content spam","反垃圾类错误"),
    E_551_MAIN_ACCOUNT_UNAVAILABLE("551 Main account unavailable","发信账户状态异常"),

    /*----------------------    调用阿里邮箱接口返回的 错误码    --------------------------*/
    E_THE_RECEIVING_ADDRESS_DOES_NOT_EXIST("The receiving address does not exist","接收地址不存在"),
    E_ACCOUNT_BLACKLIST("Account Blacklist","账号黑名单"),
    E_IP_BLACKLIST("IP blacklist","IP 黑名单"),
    E_THE_RECEIVING_ADDRESS_IS_LIMITED("The receiving address is limited","接收地址被限制"),
    E_THE_IP_FREQUENCY_EXCEEDS_THE_UPPER_LIMIT("The IP frequency exceeds the upper limit","IP 频率超限"),
    E_THE_SENDING_ACCOUNT_FREQUENCY_EXCEEDS_THE_UPPER_LIMIT("The sending account frequency exceeds the upper limit","发信账号频率超限"),
    E_THE_FREQUENCY_OF_SENDING_DOMAIN_NAME_EXCEEDS_THE_LIMIT("The frequency of sending domain name exceeds the limit","发信域名频率超限"),
    E_SPAM("spam","垃圾邮件"),
    E_THE_MAIL_SIZE_EXCEEDS_THE_UPPER_LIMIT("The mail size exceeds the upper limit","邮件大小超限"),
    E_FULL_MAILBOX_SPACE("Full mailbox space","邮箱空间满"),
    E_THE_RECEIVER_IS_TEMPORARILY_FAULTY("The receiver is temporarily faulty","接收方临时故障"),
    E_ACCOUNT_GREY_LIST("Account Grey list","账号灰名单"),
    E_THE_RECEIVED_ADDRESS_FORMAT_IS_INCORRECT("The received address format is incorrect","接收地址格式错误"),
    E_SPF_AUTHENTICATION_FAILED("SPF authentication failed","SPF 验证失败"),
    E_CONNECTION_FAILED_OR_MX_PARSE_QUERY_FAILED("Connection failed or MX parse query failed","连接失败或者MX 解析查询失败"),
    E_RECIPIENT_COOPERATION_PROBLEM("Recipient cooperation problem","收信人配合问题"),
    E_FLOW_CONTROL("Flow control","流控"),
    E_INVALID_ADDRESS("Invalid address","无效地址"),
    E_RECEIVING_SYSTEM_GREY_LIST_MECHANISM("Receiving system grey list mechanism","收信系统灰名单机制"),
    E_THE_RECEIVER_SHALL_RELEASE_THE_PACKAGE("The receiver shall release the package","收件方需放行"),
    E_MAILING_ADDRESS_REPORTED("Mailing address reported","发信地址被举报"),


    ;
    OkEmailEnum(String code, String msg){
        this.code = code;
        this.msg = msg;
    }
    private String code;
    private String msg;
}
